
:root {
  --background-color: #ffffff;
  --background-color-2: #c5c5c5;
  --text-color: #000000;
  --hover-color: rgb(123, 123, 236);
  --cta: rgb(255, 157, 0);
}
@media(prefers-color-scheme: dark){
  :root {
    --background-color: #000000;
    --background-color-2: rgb(40, 40, 40);
    --text-color: #ffffff;
  }
}
body{
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  
  overflow-x: hidden;

  font-family: "Outfit", sans-serif !important;
}

html{
  margin: 0;
  padding: 0;
  overflow-x: hidden;

  font-size: 14px;
}

* {
  box-sizing: border-box;
}


.page-top {
  width: 80vw !important;
  margin: 0 auto;

  display: flex;
  background-color: var(--background-color);
  position: sticky;
  z-index: 1;
  transition: height 1s ease; /* Smooth transition for background color */
  height: fit-content;

  margin-bottom: 5rem;
}

.page-top.stuck {
  top: 0;
  height: 30px; /* Height when stuck */
}

.logo-container {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  gap: 2rem;

  align-items: center;
  transition: max-height 0.5s ease, opacity 0s ease, transform 0.5s ease; /* Added transform transition */
  max-height: 100px; /* Set an initial max-height */
  opacity: 1; /* Fully visible initially */
}

.logo-container.stuck {
  max-height: 0; /* Collapsed height */
  opacity: 0; /* Fade out effect */
  transform: translateY(-20px); /* Optional: add a little upward movement */
  pointer-events: none; /* Disable interactions */
}

.link-home-page {
  display: flex;
  gap: 2rem;

  cursor: pointer;

  width: fit-content;
  height: fit-content;

  text-decoration: none;
  color: var(--text-color);
}

.top-page-logo {
  flex: 1;
  margin-left: 15px;
  max-height: 60px; /* Limits the height */
  max-width: fit-content;  /* Ensures it doesn’t exceed the container’s width */
  object-fit: contain; 
  transition: width 0.5s ease, height 0.5s ease;
  padding-left: 2rem;
}

.top-page-logo.stuck {
  width: 0;
  height: 0;
}

.top-page-slogan {
  flex: 2;
  font-size: 14px;
  margin-top: 25px;
  
}
.top-page-slogan.stuck {
  width: 0;
  height: 0;
  transition: width 0.5s ease, height 0.5s ease;
}

.navbar-container {
  flex: 1.1;

  display: flex;
  justify-content: space-around;
  align-items: center;


  transition: flex 0.5s ease, opacity 0.5s ease, max-width 0.5s ease; /* Smooth transition for flex and opacity */
}

.navbar-container.stuck {
  flex: 1 0 100%; /* Occupies full width of page-top */
  opacity: 1; /* Ensure it is visible when stuck */
  gap: 0px;
}

.navbar-element {
  flex: 1;
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  text-align: center;
  transition: max-width 0.5s ease;

  height: fit-content;
  align-items: center;
}

.navbar-element.stuck {
  max-width: 250px;
}

.navbar-element:hover {
  cursor: pointer;
  color: var(--hover-color);
  transition: 0.2s;
}

.dropdown {
  display: inline;
}

.dropdown a {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  padding: 5px 10px;
}

.dropdown-link:hover {
  background-color: var(--background-color);
  transition: 0.2s;

  color: var(--hover-color);
}

.dropdown .content {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background-color: var(--background-color);
  position: absolute;
  min-width: 200px;
  font-size: 14px;
  box-shadow: 2px 2px 5px rgb(69, 69, 69);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
}

.dropdown:hover .content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  max-height: 1000px;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s;
}


.seccion2 {
  background-color: rgb(107, 105, 105);
  opacity: 0.8;

  height: 10rem;
  width: 100vw;

  display: flex;

  justify-content: center;
  align-items: center;

  margin-bottom: 4rem;
}

@media (max-width: 760px) {
  .seccion2 h1 {
    margin: 0 auto;
    font-size: 1.4rem;
    text-align: center;
  }
}


.div-descripcion {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  justify-content: space-around;
  gap: 2rem;

  width: 80%;
  height: fit-content;

  margin: 0 auto;
}

.div-descripcion div {
  flex: 1;

  display: flex;
  flex-direction: column;

  
  gap: 1rem;
}

.div-descripcion div h2 {
  margin: 0 0;

}

.div-descripcion iframe {
  flex: 1 1 300px;
  height: auto;
  max-width: 360px;
  margin: 0.7142857143rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5714285714rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}


.seccion3 {
  display: flex;
  flex-direction: column;

  gap: 3rem;
}

.seccion3 a {
  text-decoration: none;
  color: var(--text-color);
}

.div-descripcion form {
  flex: 1;
  
  font-size: 0.9rem;
 
}

.div-descripcion form  label{
  display: block;
  color: var(--text-color);

  margin: 5px auto;
}

.div-descripcion form input, option, select, button, textarea {
  background-color: var(--background-color-2);
  color: (var(--text-color));
}

.div-descripcion form input {
  width: 80%;
  height: 1.8rem;
}

button {
  background-color: var(--cta);
  color: black;
  border: none;
  cursor: pointer;

  display: block;

  margin-top: 1rem;

  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
}

button a {  
  text-decoration: none;
  color: black;
}

form h3 {
  color: var(--hover-color);
}


.folleto {
  display: block;

  margin: 0 auto;
  text-align: center;

  cursor: pointer;

  width: fit-content;

  transition: all 0.3s ease-in-out;
}

.folleto:hover {
  color: var(--hover-color);
}


.modal-container {
  width: fit-content;
  

  display: flex;
  flex-direction: row !important;

  justify-content: flex-start;
}

.modal-container label, input{
  display: inline-block;
}

#privacidad {
  max-width: fit-content;
  max-height: fit-content;

  cursor: pointer;
  align-self: center;
}

.div-descripcion form a {
  text-decoration: underline;
  color: (var(--text-color));

  cursor: pointer;
}

.div-descripcion form span {
  color: var(--hover-color);
  opacity: 0.8;
}


.modal-inner {
  background-color: var(--background-color-2);
  color: var(--text-color);
  border-radius: 10px;
  padding: 1rem 1.7rem;
  text-align: left;
  max-width: 30rem;
  max-height: 30rem;

  overflow-y: auto;
}

.modal-inner h2 {
  margin: 0;
}

.modal {
  opacity: 0;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;

  transition: all 0.3 ease-in-out;
  z-index: -1;

  display: flex;
  align-items: center;
  justify-content: center;
  }

.modal.open {
  opacity: 1;
  z-index: 9999;
}

.modal-inner button {
  width: fit-content;

  justify-self: flex-start;
}



.fade-0 {
  opacity: 0;
  transform: translateY(-100%);
  filter: blur(4px);
  transition: all 1.2s ease, background-color 0.7s ease-in-out, color 0.7s ease-in-out;

}
.fade-in{
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}